import { post } from '@/utils/fetch';

export const getTagList = params => post('/usercenter-admin-app/admin/sysLabel/selectPage', params);

export const modifyTag = params => post('/usercenter-admin-app/admin/sysLabel/update', params);

export const addTag = params => post('/usercenter-admin-app/admin/sysLabel/insert', params);

export const changeTagStatus = ({ id, status }) => modifyTag({ id, status });

export const removeTag = idList => post('/usercenter-admin-app/admin/sysLabel/delete', idList);

export const getTagDetail = tagId => post(`/usercenter-admin-app/admin/sysLabel/selectDetail?id=${tagId}`);
